package baiqitun.stupro.api.model;

import baiqitun.stupro.common.model.TreeModel;
import baiqitun.stupro.security.entity.SysPermission;
import baiqitun.stupro.security.entity.SysRole;
import baiqitun.stupro.security.model.vo.Ui;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 向前端返回的角色信息
 * @author kedaji
 */
@ApiModel("角色信息")
@Accessors(chain = true)
@Data
public class RoleInfo implements Serializable {
    @ApiModelProperty("角色许可")
    private List<SysRole> roles;
    @ApiModelProperty("菜单许可")
    private List<TreeModel<SysPermission>> permissions;
}
